package com.gaoda.booksystem.entity;

import java.util.Date;

/**
 * @author: LuckyBear
 * @date: 2018-12-10 21:15
 * @description:
 */
public class User {
    private int id; //主键id
    private String name;    //用户姓名
    private int userSex;    //用户性别（1：男；2：女）
    private String password;     //用户密码
    private int age;    //用户年龄
    private String userDep; //用户所属部门   1、总经理办公室   2、人力资源部  3、财务部  4、生产技术部  5、计划营销部  6、安全监察部  7、后勤部
    private Date userTime;  //用户注册时间
    private String  username; //用户账号（员工编号）
    private String userTel;     //联系方式
    private String userType;        //用户角色
    private int userState;      //用户状态   1、可用   2、停用
    private String  delflag;    //用于逻辑删除

    public User() {
    }

    public User(String name, int userSex, String password, int age, String userDep, Date userTime, String username, String userTel, String userType, int userState, String delflag) {
        this.name = name;
        this.userSex = userSex;
        this.password = password;
        this.age = age;
        this.userDep = userDep;
        this.userTime = userTime;
        this.username = username;
        this.userTel = userTel;
        this.userType = userType;
        this.userState = userState;
        this.delflag = delflag;
    }

    public User(int id, String name, int userSex, String password, int age, String userDep, Date userTime, String username, String userTel, String userType, int userState, String delflag) {
        this.id = id;
        this.name = name;
        this.userSex = userSex;
        this.password = password;
        this.age = age;
        this.userDep = userDep;
        this.userTime = userTime;
        this.username = username;
        this.userTel = userTel;
        this.userType = userType;
        this.userState = userState;
        this.delflag = delflag;
    }

    public User(String name, int userSex, String password, int age, String userDep, String username, String userType, int userState) {
        this.name = name;
        this.userSex = userSex;
        this.password = password;
        this.age = age;
        this.userDep = userDep;
        this.username = username;
        this.userType = userType;
        this.userState = userState;
    }

    public User(int id,String name, int userSex, int age, String userDep, String username, String userTel) {
        this.id = id;
        this.name = name;
        this.userSex = userSex;
        this.age = age;
        this.userDep = userDep;
        this.username = username;
        this.userTel = userTel;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getUserSex() {
        return userSex;
    }

    public void setUserSex(int userSex) {
        this.userSex = userSex;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getUserDep() {
        return userDep;
    }

    public void setUserDep(String userDep) {
        this.userDep = userDep;
    }

    public Date getUserTime() {
        return userTime;
    }

    public void setUserTime(Date userTime) {
        this.userTime = userTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public int getUserState() { return userState; }

    public void setUserState(int userState) { this.userState = userState; }

    public String getDelflag() {
        return delflag;
    }

    public void setDelflag(String delflag) {
        this.delflag = delflag;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", userSex=" + userSex +
                ", password='" + password + '\'' +
                ", age=" + age +
                ", userDep='" + userDep + '\'' +
                ", userTime=" + userTime +
                ", username='" + username + '\'' +
                ", userTel='" + userTel + '\'' +
                ", userType='" + userType + '\'' +
                ", userState=" + userState +
                ", delflag='" + delflag + '\'' +
                '}';
    }
}
